<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Upload</title>
    <style>
        body {
            background-color: #fff0f5;
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 20px;
        }
        form {
            background-color: #ffffff;
            padding: 20px;
            border-radius: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            max-width: 400px;
            margin: auto;
        }
        input[type="text"],
        input[type="file"] {
            width: calc(100% - 22px);
            padding: 10px;
            margin: 10px 0;
            border: 1px solid #ff6b81;
            border-radius: 5px;
        }
        input[type="checkbox"] {
            margin-left: 10px;
            transform: scale(1.2);
        }
        input[type="submit"] {
            background-color: #ff6b81;
            color: white;
            border: none;
            padding: 10px 20px;
            font-size: 16px;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        input[type="submit"]:hover {
            background-color: #ff6b81;
        }
        label {
            font-size: 14px;
            color: #333;
            margin-right: 10px;
        }
    </style>
</head>
<body>
  <form method="post" enctype="multipart/form-data">
      {% csrf_token %}
      <label for="name">姓名</label><input type="text" id="name" name="name"/><br/>
      <label>爱好：</label>
      <input type="checkbox" name="hobbies" value="swim" id="swim"/><label for="swim">游泳</label>
      <input type="checkbox" name="hobbies" value="reading" id="reading"/><label for="reading">读书</label>
      <input type="checkbox" name="hobbies" value="game" id="game"/><label for="game">游戏</label>
      <input type="checkbox" name="hobbies" value="travelling" id="travelling"/><label for="travelling">旅游</label><br/>
      <label for="myfile">文件</label><input type="file" id="myfile" name="myfile"/><br/>
      <label for="myfile2">文件2</label><input type="file" id="myfile2" name="myfile2"/><br/>
      <input type="submit" value="上传"/>
  </form>
</body>
</html>
